package com.software.sqlite.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.Date;

@Data
@Entity
public class BaseEntity {

    /**
     * token
     */
    @Transient
    private String token;

    /**
     * token
     */
    @Transient
    private String userType;
    /**
     * 使用状态：normal=正常；deleted=注销
     */
    @Column(name = "use_status")
    private String useStatus;

    /**
     * 创建人id
     */
    @Column(name = "create_admin_id")
    private Long createAdminId;

    /**
     * 创建人姓名
     */
    @Transient
    private String createAdminName;

    /**
     * 创建人时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人id
     */
    @Column(name = "update_admin_id")
    private Long updateAdminId;

    /**
     * 修改人姓名
     */
    @Transient
    private String updateAdminName;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * selectPageFlag: true=选择表单；false=列表表单
     */
    @Transient
    private boolean selectPageFlag;

    @Transient
    private String powerShipIds;

    @Transient
    private String powerShipNames;

    @Transient
    private String shipCompanyIds;

    @Transient
    private String orgNames;

    /**开始时间**/
    @Transient
    private String startTime;
    /**结束时间**/
    @Transient
    private String endTime;

    @Transient
    private String movieUrl;

}
